<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>活动详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="../../../static/images/favicon.ico" th:href="@{/images/favicon.ico}">
    <link rel="stylesheet" href="../../../static/plugin/layui/css/layui.css" th:href="@{/plugin/layui/css/layui.css}"
        media="all" />
    <link rel="stylesheet" href="../../../static/back_css/create_details.css" th:href="@{/back_css/create_details.css}"
        media="all">
</head>

<body>
    <div id="main">
        <div class="content2">
            <div class="layui-tab activity_news">
                <ul class="layui-tab-title">
                    <li class="layui-this">基本信息</li>
                    <li>时间信息</li>
                    <li>奖项信息</li>
                    <li>获奖规则</li>
                    <li th:if="${admin_id}==${ActivityDetails.getADMIN_ID()} or ${isSup}==1">活动设置</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <button type="button" class="layui-btn layui-btn-warm layui-btn-radius layui-color"
                            id="details_edit"
                            th:if="${admin_id}==${ActivityDetails.getADMIN_ID()} or ${isSup}==1">编辑</button>
                        <h1 th:text="${ActivityDetails.ACTIVITY_NAME}">未知活动</h1>
                        <div class="layui-inline authorsub">
                            <span>发布人：<span
                                    th:text="${ActivityDetails.ADMIN_NAME}">admin</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
                            <span>发布时间：<span th:text="${ActivityDetails.CREATE_TIME}">2025-0-01 00:00:00</span></span>
                        </div>
                        <div class="news_content">
                            <div style="padding:20px;">
                                <img src="../../images/face.jpg" th:src="${ActivityDetails.ACTIVITY_IMG}">
                                <input type="hidden" id="HTML" th:value="${ActivityDetails.ACTIVITY_DETAILS}">
                                <textarea placeholder="请输入活动简介" id="ACTIVITY_DETAIL"
                                    style="width: 100%;margin: 0;height: 100%">
                            </textarea>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <button type="button" class="layui-btn layui-btn-warm layui-btn-radius layui-color1"
                            id="date_edit"
                            th:if="${admin_id}==${ActivityDetails.getADMIN_ID()} or ${isSup}==1">编辑</button>
                        <div class="date_set" th:if="${ActivityDetails.STAGE_IS_OPEN}==0"><span
                                th:text="'决赛：'+${ActivityDetails.STARTTIME}+'-'+${ActivityDetails.ENDTIME}"></span>
                        </div>
                        <div class="date_set" th:if="${ActivityDetails.STAGE_1ST_NAME}!=null"><span
                                th:text="${ActivityDetails.STAGE_1ST_NAME}+' ： '+${ActivityDetails.ST1_STARTTIME}+'——'+${ActivityDetails.ST1_ENDTIME}"></span>
                        </div>
                        <div class="date_set" th:if="${ActivityDetails.STAGE_2ND_NAME}!=null"><span
                                th:text="${ActivityDetails.STAGE_2ND_NAME}+' ： '+${ActivityDetails.ST2_STARTTIME}+'——'+${ActivityDetails.ST2_ENDTIME}"></span>
                        </div>
                        <div class="date_set" th:if="${ActivityDetails.STAGE_3RD_NAME}!=null"><span
                                th:text="${ActivityDetails.STAGE_3RD_NAME}+' ： '+${ActivityDetails.ST3_STARTTIME}+'——'+${ActivityDetails.ST3_ENDTIME}"></span>
                        </div>
                        <div class="date_set" th:if="${ActivityDetails.STAGE_4TH_NAME}!=null"><span
                                th:text="${ActivityDetails.STAGE_4TH_NAME}+' ： '+${ActivityDetails.ST4_STARTTIME}+'——'+${ActivityDetails.ST4_ENDTIME}"></span>
                        </div>
                        <div class="date_set_item">
                            <form class="layui-form" action="" method="get">
                                <h2>时间设置</h2>
                                <button type="button" id="updateTime" lay-filter="updateTime" lay-submit
                                    class="layui-btn layui-btn-warm layui-btn-radius layui-bg-oranges">确定</button>
                                <button type="button" id="date_cancel"
                                    class="layui-btn layui-btn-warm layui-btn-radius cancel_color">取消</button>
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <div class="layui-input-inline date_border">
                                            <i class="layui-icon layui-icon-date"></i>
                                            <input type="text" name="start_date" id="global_start_time"
                                                lay-verify="datetime" placeholder="设置开始时间" autocomplete="off"
                                                class="layui-input date">
                                        </div>
                                        <div class="layui-input-inline date_border">
                                            <i class="layui-icon layui-icon-date"></i>
                                            <input type="text" name="end_date" lay-verify="datetime"
                                                id="global_end_time" placeholder="设置结束时间" autocomplete="off"
                                                class="layui-input date">
                                        </div>
                                        <div class="layui-input-inline open_create1">
                                            <input type="checkbox" name="detail_time_open" lay-filter="detail_time_open"
                                                lay-skin="primary" title="开启详细时间设置">
                                        </div>
                                    </div>
                                    <div class="layui-inline add_time">
                                        <button class="layui-btn" id="edit_match_time_item">添加</button>
                                        <span class="prompt">最多添加4个时间段</span>
                                    </div>
                                    <div id="match_time_add">
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="layui-tab-item" id="price_count">
                        <div th:if="${admin_id}==${ActivityDetails.getADMIN_ID()}  or ${isSup}==1 ">
                            <button type="button" class="layui-btn layui-btn-warm layui-btn-radius layui-color"
                                id="prize_edit">新增</button>
                        </div>
                        <div th:if="${prizeList==null || prizeList.size()==0}"><span>暂无数据</span></div>
                        <div class="prize_set" th:each="prize:${prizeList}">
                            <span
                                th:text="${prize.PRIZE_NAME}+':'+${prize.PRIZE_USERNUMBER}+'名    奖品：'+${prize.PRIZE_GOODS}">一等奖：2名&nbsp;&nbsp;&nbsp;&nbsp;奖品：铅笔盒一个&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <a class="showimg1" th:data-img_url="${prize.PRIZE_GOODS_IMG}">图片</a>
                            <input type="hidden" class="prizeId" th:value="${prize.getPRIZE_ID()}" />
                            <button class="layui-btn layui-btn-xs layui-btn-danger delete_prize_btn"
                                style="margin-left: 20px"
                                th:if="${admin_id}==${ActivityDetails.getADMIN_ID()}  or ${isSup}==1 ">删除</button>
                        </div>

                        <div class="prize_set_item">
                            <form class="layui-form" action="" method="get">
                                <div class="layui-inline prize_add_content">
                                    <div class="layui-input-inline add_prize">
                                        <button class="layui-btn" id="edit_prize_item">添加</button>
                                        <!--<button type="submit" lay-submit=""  class="layui-btn layui-btn-warm layui-btn-radius ">确认</button>-->
                                        <button type="button" id="prizeUpdate" lay-filter="prizeUpdate" lay-submit
                                            class="layui-btn layui-btn-warm layui-btn-radius layui-bg-oranges">确定</button>
                                        <button type="button" id="btn_cancel"
                                            class="layui-btn layui-btn-warm layui-btn-radius cancel_color">取消</button>
                                    </div>
                                </div>
                                <span style="color:red;">注意：奖项名称，人数，奖品为必填项！</span>
                                <div id="prize_name_add"></div>
                            </form>
                        </div>
                    </div>
                    <div class="layui-tab-item" id="price_rules_count">
                        <div th:if="${admin_id}==${ActivityDetails.getADMIN_ID()}  or ${isSup}==1 ">
                            <button type="button" class="layui-btn layui-btn-warm layui-btn-radius layui-color"
                                id="prize_rules_edit">修改</button>
                        </div>
                        <div th:if="${ActivityDetails.getPRIZE_RULE()}==''"><span>暂无数据</span></div>
                        <div class="prize_set" th:if="${ActivityDetails.getPRIZE_RULE()}!=''">
                            <span th:text="${ActivityDetails.getPRIZE_RULE()}"></span>
                        </div>
                    </div>
                    <div class="layui-tab-item container1">
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="is_Votes" th:value="${ActivityDetails.getIS_VOTE()}" />
                                <label class="layui-form-label" style="width: 170px;">投票阶段设置</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="IS_VOTE" value="0" title="未开始">
                                    <input type="radio" name="IS_VOTE" value="1" title="开启投票">
                                    <input type="radio" name="IS_VOTE" value="2" title="投票结束">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="is_vote">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="IS_SIGUP" th:value="${ActivityDetails.getIS_SIGUP()}" />
                                <label class="layui-form-label" style="width: 170px;">报名设置</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="IS_SIGUP" value="0" title="正在进行报名">
                                    <input type="radio" name="IS_SIGUP" value="1" title="结束报名">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="IS_SIGUP">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <label class="layui-form-label" style="width: 170px;">该活动限定每人上传作品数 </label>
                                <div class="layui-input-block">
                                    <input type="text" name="WORKS_LIMIT_PERUSER"
                                        th:value="${ActivityDetails.getWORKS_LIMIT_PERUSER()}">
                                    <button lay-submit class="layui-btn btn_right"
                                        lay-filter="WORKS_LIMIT_PERUSER">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <label class="layui-form-label" style="width: 170px;">每天限制点赞次数</label>
                                <div class="layui-input-block">
                                    <input type="text" name="VOTES_LIMIT_PERDAY"
                                        th:value="${ActivityDetails.getVOTES_LIMIT_PERDAY()}">
                                    <button lay-submit class="layui-btn btn_right"
                                        lay-filter="VOTES_LIMIT_PERDAY">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <label class="layui-form-label" style="width: 170px;">每天对同一作品点赞次数 </label>
                                <div class="layui-input-block">
                                    <input type="text" name="VOTES_LIMIT_TOSINGLE_PERDAY"
                                        th:value="${ActivityDetails.getVOTES_LIMIT_TOSINGLE_PERDAY()}">
                                    <button lay-submit class="layui-btn btn_right"
                                        lay-filter="VOTES_LIMIT_TOSINGLE_PERDAY">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="IS_SUBMIT" th:value="${ActivityDetails.getIS_SUBMIT()}" />
                                <label class="layui-form-label" style="width: 170px;">管理员是否提交作品</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="IS_SUBMIT" value="0" title="不提交">
                                    <input type="radio" name="IS_SUBMIT" value="1" title="提交">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="IS_SUBMIT">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="CURRENT_STAGE"
                                    th:value="${ActivityDetails.getCURRENT_STAGE()}" />
                                <label class="layui-form-label" style="width: 170px;">设置手机端展示作品阶段</label>
                                <div class="layui-input-block">
                                    <div class="layui-input-inline">
                                        <input type="radio" name="CURRENT_STAGE" value="0" title="审核通过阶段（审核通过之前）">
                                        <input type="radio" name="CURRENT_STAGE" value="1" title="提交阶段（各级管理员提交的作品）"><br>
                                        <input type="radio" name="CURRENT_STAGE" value="2" title="晋级作品（活动发布者晋级的作品）">
                                    </div>
                                    <button lay-submit class="layui-btn btn_right"
                                        lay-filter="CURRENT_STAGE">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="WORK_TYPE" th:value="${ActivityDetails.getWORK_TYPE()}" />
                                <label class="layui-form-label" style="width: 170px;">上传作品类型</label>
                                <div class="layui-input-block">
                                    <div class="layui-input-inline">
                                        <input type="checkbox" name="V_TYPE" title="视频作品" value="1" lay-skin="primary">
                                        <input type="checkbox" name="A_TYPE" title="音频作品" value="1" lay-skin="primary">
                                        <input type="checkbox" name="F_TYPE" title="范文朗读" value="1" lay-skin="primary">
                                        <input type="checkbox" name="P_TYPE" title="图片作品" value="1" lay-skin="primary">
                                    </div>
                                    <button lay-submit class="layui-btn btn_right" lay-filter="WORK_TYPE">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <label class="layui-form-label" style="width: 170px;">各地区提交作品数量</label>
                                <div class="layui-input-block">
                                    <input type="text" name="SUBMIT_WORK_NUMBER"
                                        th:value="${ActivityDetails.getSUBMIT_WORK_NUMBER()}">
                                    <button lay-submit class="layui-btn btn_right"
                                        lay-filter="SUBMIT_WORK_NUMBER">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="DELETED" th:value="${ActivityDetails.getDELETED()}" />
                                <label class="layui-form-label" style="width: 170px;">手机端是否显示</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="DELETED" value="0" title="显示">
                                    <input type="radio" name="DELETED" value="1" title="不显示">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="DELETED">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="ACTIVITY_STATE"
                                    th:value="${ActivityDetails.getACTIVITY_STATE()}" />
                                <label class="layui-form-label" style="width: 170px;">活动状态</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="ACTIVITY_STATE" value="0" title="未开始">
                                    <input type="radio" name="ACTIVITY_STATE" value="1" title="进行中">
                                    <input type="radio" name="ACTIVITY_STATE" value="2" title="已结束">
                                    <button lay-submit class="layui-btn btn_right"
                                        lay-filter="ACTIVITY_STATE">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="IS_IN" th:value="${ActivityDetails.getIS_IN()}" />
                                <label class="layui-form-label" style="width: 170px;">手机端是否进入该活动</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="IS_IN" value="1" title="是">
                                    <input type="radio" name="IS_IN" value="0" title="否">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="IS_IN">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="WINNERS" th:value="${ActivityDetails.getWINNERS()}" />
                                <label class="layui-form-label" style="width: 170px;">手机端是否显示获奖名单</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="WINNERS" value="0" title="不显示">
                                    <input type="radio" name="WINNERS" value="1" title="显示">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="WINNERS">确定</button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-form_container">
                            <form class="layui-form" action="" method="get">
                                <input type="hidden" id="IS_ROTE" th:value="${ActivityDetails.getIS_ROTE()}" />
                                <label class="layui-form-label" style="width: 170px;">该活动是否设置投票</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="IS_ROTE" value="1" title="不设置">
                                    <input type="radio" name="IS_ROTE" value="0" title="设置">
                                    <button lay-submit class="layui-btn btn_right" lay-filter="IS_ROTE">确定</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="edit_details details">
        <form class="layui-form content1" action="">
            <h2>编辑详情</h2>
            <div class="layui-form_content">
                <div class="layui-form-item">
                    <label class="layui-form-label">活动标题</label>
                    <div class="layui-input-block">
                        <input type="text" id="ACTIVITY_NAME" name="ACTIVITY_NAME" maxlength="60" lay-verify="title"
                            autocomplete="off" th:value="${ActivityDetails.ACTIVITY_NAME}" placeholder="请输入活动标题（60字以内）"
                            class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">活动封面</label>
                    <div class="layui-input-block jacket_btn">
                        <input name="ACTIVITY_IMG" class="upload_img" id="ACTIVITY_IMG"
                            th:value="${ActivityDetails.ACTIVITY_IMG}" type="hidden">
                        <div class="upload_jacket_img" th:style="'content:url('+${ActivityDetails.ACTIVITY_IMG}+')'">

                        </div>
                        <span class="prompt">请上传尺寸为750*360px的PNG、JPG、GIF图片，大小&lt;10M</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">活动详情</label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入活动简介" id="ACTIVITY_DETAILS" name="ACTIVITY_DETAILS"
                            class="layui-textarea"></textarea>
                    </div>
                </div>
            </div>
            <div class="layui-form_bottom">
                <button type="button" id="rescind"
                    class="layui-btn layui-btn-warm layui-btn-radius layui-bg-grays">取消</button>
                <button type="button" id="definite" lay-filter="update" lay-submit
                    class="layui-btn layui-btn-warm layui-btn-radius layui-bg-oranges">确定</button>
            </div>
        </form>
    </div>
    <div class="edit_details rules">
        <form class="layui-form content1" action="">
            <h2>修改获奖规则</h2>
            <div class="layui-form_content">
                <div class="layui-form-item">
                    <label class="layui-form-label">获奖规则</label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入获奖规则" id="PRIZE_RULE" name="PRIZE_RULE"
                            th:text="${ActivityDetails.getPRIZE_RULE()}" class="layui-textarea"></textarea>
                    </div>
                </div>
            </div>
            <div class="layui-form_bottom">
                <button type="button" id="close"
                    class="layui-btn layui-btn-warm layui-btn-radius layui-bg-grays">取消</button>
                <button type="button" id="commit" lay-filter="commit" lay-submit
                    class="layui-btn layui-btn-warm layui-btn-radius layui-bg-oranges">确定</button>
            </div>
        </form>
    </div>
    <datalist class="race_stage" id="match_name_list" name="matchset">
        <option value="初赛"></option>
        <option value="复赛"></option>
        <option value="决赛"></option>
    </datalist>

    <script type="text/html" id="match_date_item">
    <form class="layui-form-item match">
            <div class="match_name">
                <input class="layui-input" type="text" name="STAGE_NAME" list="match_name_list" placeholder="名称！">
            </div>
            <div class="layui-inline">
                <label class="layui-form-label time_set">时间设置</label>
                <div class="layui-input-inline date_border">
                    <i class="layui-icon layui-icon-date"></i>
                    <input type="text" name="match_start_date"  lay-verify="datetime" placeholder="2019-07-02" autocomplete="off"
                           class="layui-input date">
                </div>
                <label class="layui-form-label date_set1" >至</label>
                <div class="layui-input-inline date_border">
                    <i class="layui-icon layui-icon-date"></i>
                    <input type="text" name="match_end_date"  lay-verify="datetime" placeholder="2019-07-02" autocomplete="off"
                           class="layui-input setdate date">
                </div>
            </div>
            <button type="button" class="layui-btn matchtime_del">删除</button>
    </form>
</script>
    <script type="text/html" id="prize_name_item">
    <form class="layui-form-item prize_item">
        <div class="layui-inline">
            <label class="layui-form-label time_set">奖项名称</label>
            <div class="layui-input-inline date_border">
                <input type="text" autocomplete="off" class="layui-input" list="3" placeholder="奖项名称" name="PRIZE_NAME">
                <datalist class="race_stage" id="3">
                    <option value="一等奖"></option>
                    <option value="二等奖"></option>
                    <option value="三等奖"></option>
                </datalist>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label people_num">人数</label>
            <div class="layui-input-inline date_border">
                <input type="number" autocomplete="off" value="1" min="1" class="layui-input" name="PRIZE_USERNUMBER">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label people_num">奖品</label>
            <div class="layui-input-inline date_border">
                <input type="text" autocomplete="off"  placeholder="奖品名称" class="layui-input" name="PRIZE_GOODS">
            </div>
        </div>
        <button class="layui-btn prizename_del" >删除</button>
        <div class="layui-form-item">
            <label class="layui-form-label">奖品封面</label>
            <div class="layui-input-block jacket_btn1">
                <input type="hidden"  class="upload_img"  name="PRIZE_GOODS_IMG">
                <div class="upload_jacket_img1">
                </div>
                <span class="prompt">请上传尺寸为750*360px的PNG、JPG、GIF图片，大小不超过10M</span>
            </div>
        </div>
    </form>
</script>
    <script type="text/javascript" src="../../../static/plugin/layui/layui.js"
        th:src="@{/plugin/layui/layui.js}"></script>
    <script type="text/javascript">
        var laydate;
        var $;
        layui.use(['form', "laydate", "jquery", "element", 'upload', 'layer', "layedit"], function () {
            var form = layui.form,
                layer = layui.layer;
            var element = layui.element;
            var layedit = layui.layedit;
            $ = layui.jquery;
            laydate = layui.laydate;

            var html = $("#HTML").val();
            $("#ACTIVITY_DETAIL").html(html);
            $("#ACTIVITY_DETAILS").html(html);

            layedit.build('ACTIVITY_DETAIL', {//建立编辑器
                tool: [ //清除链接
                ],
                contenteditable: false
            });
            $(document).ready(function () {
                $("#ACTIVITY_DETAIL").next().find('iframe').contents().find('body').prop("contenteditable", false);
            })

            $(window).on('resize', function () {
                // iframe窗口自适应
                var $content = $("#ACTIVITY_DETAIL");
                $content.height($(this).height() - 125);
                $content.next().find('iframe').each(function () {
                    $(this).height($content.height());
                });
            }).resize();

            htmlss = layedit.build('ACTIVITY_DETAILS', {//建立编辑器
                tool: ['strong' //加粗
                    , 'italic' //斜体
                    , 'underline' //下划线
                    , 'del' //删除线
                    , 'left' //左对齐
                    , 'center' //居中对齐
                    , 'right' //右对齐
                    , 'link' //超链接
                    , 'unlink' //清除链接
                    , 'face'
                ]
            });
            $(".upload_jacket_img").on("click", function (a, b) {
                var that = this;
                var ipt = document.createElement("input")
                ipt.type = "file";
                ipt.multiple = false;
                ipt.accept = "image/*"
                ipt.onchange = function (ev) {
                    console.log(ipt.files);
                    if (ipt.files.length > 0) {
                        var formdata = new FormData();
                        formdata.append("file", ipt.files[0]);
                        formdata.append("dir", "activity");
                        $.ajax({
                            url: "/operate/uploadImg",
                            data: formdata,
                            type: "post",
                            async: false,
                            processData: false,
                            contentType: false,
                            success: function (result) {
                                console.log("result:", result);
                                var path = result;
                                $(that).css("content", "url(" + path + ")");
                                $(that).siblings("input.upload_img").val(path);
                            },
                            error: function (ret) {
                                layer.msg("网络错误！")
                            }
                        })
                    }
                    ipt = null;
                }
                ipt.click();
            });
            $(".date").each(function (index, item) {
                laydate.render({
                    elem: item,
                    type: 'datetime'
                });
            })
            var is_Votes = $("#is_Votes").val();
            $("input[name^='IS_VOTE']").each(function () {
                if ($(this).val() == is_Votes) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var CURRENT_STAGE = $("#CURRENT_STAGE").val();
            $("input[name^='CURRENT_STAGE']").each(function () {
                if ($(this).val() == CURRENT_STAGE) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var IS_SUBMIT = $("#IS_SUBMIT").val();
            $("input[name^='IS_SUBMIT']").each(function () {
                if ($(this).val() == IS_SUBMIT) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })

            var WORK_TYPE = $("#WORK_TYPE").val();
            if (WORK_TYPE == 1) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 2) {
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 3) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 4) {
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 5) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 6) {
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 7) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 8) {
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 9) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 10) {
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 11) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 12) {
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 13) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 14) {
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            } else if (WORK_TYPE == 15) {
                $("input[name^='V_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='A_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='F_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
                $("input[name^='P_TYPE']").each(function () {
                    $(this).prop("checked", true);
                    form.render();
                })
            }
            var IS_SIGUP = $("#IS_SIGUP").val();
            $("input[name^='IS_SIGUP']").each(function () {
                if ($(this).val() == IS_SIGUP) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var DELETED = $("#DELETED").val();
            $("input[name^='DELETED']").each(function () {
                //console.log($(this).val());
                if ($(this).val() == DELETED) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var IS_IN = $("#IS_IN").val();
            $("input[name^='IS_IN']").each(function () {
                //console.log($(this).val());
                if ($(this).val() == IS_IN) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var WINNERS = $("#WINNERS").val();
            $("input[name^='WINNERS']").each(function () {
                //console.log($(this).val());
                if ($(this).val() == WINNERS) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var IS_ROTE = $("#IS_ROTE").val();
            $("input[name^='IS_ROTE']").each(function () {
                //console.log($(this).val());
                if ($(this).val() == IS_ROTE) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            var ACTIVITY_STATE = $("#ACTIVITY_STATE").val();
            $("input[name^='ACTIVITY_STATE']").each(function () {
                //console.log($(this).val());
                if ($(this).val() == ACTIVITY_STATE) {
                    $(this).prop("checked", true);
                    form.render();
                }
            })
            form.on("submit(update)", function (data) {
                var html = layedit.getContent(htmlss);
                var ACTIVITY_NAME = $("#ACTIVITY_NAME").val();
                var obj = {};
                obj["ACTIVITY_IMG"] = $("#ACTIVITY_IMG").val();
                obj["ACTIVITY_NAME"] = ACTIVITY_NAME;
                obj["ACTIVITY_DETAILS"] = html;
                layer.load(1);
                $.ajax({
                    url: '/updateActivityById',
                    type: 'POST',
                    data: obj,
                    success: function (result) {
                        window.location.href = '/getActivityDetails';
                    },
                    error: function (reason) {
                        layer.msg("网络错误");
                    }
                })
                return false;
            })
            form.on("submit(commit)", function (data) {//修改获奖规则
                if (data.field.PRIZE_RULE.length > 2000) {
                    alert("您已超过字数最大限制！");
                    return;
                }
                setTimeout(function () {
                    $.ajax({
                        url: "/updateActivityRules",
                        async: false,
                        type: 'POST',
                        cache: false,
                        data: data.field,
                        success: function (data) {
                            window.location.href = '/getActivityDetails';
                        }
                    })
                }, 1000);
                return false;
            })
            $.fn.serializeObject = function () {
                var o = {};
                var a = this.serializeArray();
                $.each(a, function () {
                    if (o[this.name]) {
                        if (!o[this.name].push) {
                            o[this.name] = [o[this.name]];
                        }
                        o[this.name].push(this.value || '');
                    } else {
                        o[this.name] = this.value || '';
                    }
                });
                return o;
            }
            form.on("submit(prizeUpdate)", function (data) {
                var prize_info = [];
                var is_empty = false;
                $("#prize_name_add").children("form").each(function (index, item) {
                    var tmp = $(item).serializeObject();
                    prize_info.push(tmp)
                    if (!tmp.PRIZE_NAME || !tmp.PRIZE_USERNUMBER || !tmp.PRIZE_GOODS) is_empty = true;
                });
                if (is_empty) {
                    layer.msg("奖项名称，人数，奖品为必填项！");
                    return false;
                }

                if (prize_info.length == 0) {
                    console.log(prize_info);
                    layer.msg("请添加新的奖项！");
                    return false;
                }

                $.ajax({
                    url: '/updatePrize',
                    type: 'post',
                    data: JSON.stringify(prize_info),
                    contentType: "application/json",
                    dataType: "json",
                    success: function (result) {
                        console.log(result);
                        window.location.href = '/getActivityDetails';
                    },
                    error: function (res) {
                        layer.msg("网络错误！");
                    }
                })
                return false;
            })
            form.on("submit(updateTime)", function (data) {
                var formData = new FormData();
                var ACTIVITY_STARTTIME = $("#global_start_time").val();//开始时间
                var ACTIVITY_ENDTIME = $("#global_end_time").val();//开始时间
                formData.append("STARTTIME", ACTIVITY_STARTTIME);
                formData.append("ENDTIME", ACTIVITY_ENDTIME);
                var time_info = [];
                $("#match_time_add").children("form").each(function (index, item) {
                    time_info.push($(item).serializeObject())
                });
                if (time_info.length != 0) {
                    formData.append("STAGE_IS_OPEN", 1);
                    formData.append("STAGE_1ST_NAME", time_info[0].STAGE_NAME);
                    formData.append("ST1_STARTTIME", time_info[0].match_start_date);
                    formData.append("ST1_ENDTIME", time_info[0].match_end_date);
                    formData.append("STAGE_1ST_WIN", 0);
                    if (time_info[1] != null) {
                        formData.append("STAGE_2ND_NAME", time_info[1].STAGE_NAME);
                        formData.append("ST2_STARTTIME", time_info[1].match_start_date);
                        formData.append("ST2_ENDTIME", time_info[1].match_end_date);
                        formData.append("STAGE_2ND_WIN", 0);
                    }
                    if (time_info[2] != null) {
                        formData.append("STAGE_3RD_NAME", time_info[2].STAGE_NAME);
                        formData.append("ST3_STARTTIME", time_info[2].match_start_date);
                        formData.append("ST3_ENDTIME", time_info[2].match_end_date);
                        formData.append("STAGE_3RD_WIN", 0);
                    }
                    if (time_info[3] != null) {
                        formData.append("STAGE_4TH_NAME", time_info[3].STAGE_NAME);
                        formData.append("ST4_STARTTIME", time_info[3].match_start_date);
                        formData.append("ST4_ENDTIME", time_info[3].match_end_date);
                        formData.append("STAGE_4TH_WIN", 0);
                    }
                } else {
                    formData.append("STAGE_IS_OPEN", 0);
                }
                $.ajax({
                    url: '/updateTime',
                    type: 'post',
                    cache: false,
                    data: formData,
                    processData: false,
                    contentType: false,
                    success: function (result) {
                        window.location.href = '/getActivityDetails';
                    }
                })
                return false;
            })

            //设置投票
            form.on('submit(is_vote)', function (data) {
                $.ajax({//进行审核提交
                    url: '/IS_VOTE',
                    async: false,
                    type: "POST",
                    data: {
                        IS_VOTE: data.field.IS_VOTE
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //该活动是否手机端显示
            form.on('submit(DELETED)', function (data) {
                $.ajax({//进行审核提交
                    url: '/DELETED',
                    async: false,
                    type: "POST",
                    data: {
                        DELETED: data.field.DELETED
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //上传作品数
            form.on('submit(WORKS_LIMIT_PERUSER)', function (data) {
                $.ajax({//进行审核提交
                    url: '/WORKS_LIMIT_PERUSER',
                    async: false,
                    type: "POST",
                    data: {
                        WORKS_LIMIT_PERUSER: data.field.WORKS_LIMIT_PERUSER
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //每天点赞次数
            form.on('submit(VOTES_LIMIT_PERDAY)', function (data) {
                //alert(data.field.VOTES_LIMIT_PERDAY);
                $.ajax({//进行审核提交
                    url: '/VOTES_LIMIT_PERDAY',
                    async: false,
                    type: "POST",
                    data: {
                        VOTES_LIMIT_PERDAY: data.field.VOTES_LIMIT_PERDAY
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //每天对同一作品点赞次数
            form.on('submit(VOTES_LIMIT_TOSINGLE_PERDAY)', function (data) {
                $.ajax({//进行审核提交
                    url: '/VOTES_LIMIT_TOSINGLE_PERDAY',
                    async: false,
                    type: "POST",
                    data: {
                        VOTES_LIMIT_TOSINGLE_PERDAY: data.field.VOTES_LIMIT_TOSINGLE_PERDAY
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //管理员是否提交作品
            form.on('submit(IS_SUBMIT)', function (data) {
                $.ajax({//进行审核提交
                    url: '/IS_SUBMIT',
                    async: false,
                    type: "POST",
                    data: {
                        IS_SUBMIT: data.field.IS_SUBMIT
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //手机端显示
            form.on('submit(CURRENT_STAGE)', function (data) {
                $.ajax({//进行审核提交
                    url: '/CURRENT_STAGE',
                    async: false,
                    type: "POST",
                    data: {
                        CURRENT_STAGE: data.field.CURRENT_STAGE
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //手机端是否进入该活动
            form.on('submit(IS_IN)', function (data) {
                $.ajax({//进行审核提交
                    url: '/IS_IN',
                    async: false,
                    type: "POST",
                    data: {
                        IS_IN: data.field.IS_IN
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //手机端是否进入该活动
            form.on('submit(WINNERS)', function (data) {
                $.ajax({//进行审核提交
                    url: '/WINNERS',
                    async: false,
                    type: "POST",
                    data: {
                        WINNERS: data.field.WINNERS
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });

            //手机端是否进入该活动
            form.on('submit(IS_ROTE)', function (data) {
                $.ajax({//进行审核提交
                    url: '/IS_ROTE',
                    async: false,
                    type: "POST",
                    data: {
                        IS_ROTE: data.field.IS_ROTE
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //活动状态
            form.on('submit(ACTIVITY_STATE)', function (data) {
                $.ajax({//进行审核提交
                    url: '/ACTIVITY_STATE',
                    async: false,
                    type: "POST",
                    data: {
                        ACTIVITY_STATE: data.field.ACTIVITY_STATE
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //上传作品类型
            form.on('submit(WORK_TYPE)', function (data) {
                //console.log(data);
                $.ajax({//进行审核提交
                    url: '/WORK_TYPE',
                    async: false,
                    type: "POST",
                    data: {
                        V_TYPE: data.field.V_TYPE,
                        A_TYPE: data.field.A_TYPE,
                        F_TYPE: data.field.F_TYPE,
                        P_TYPE: data.field.P_TYPE
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //报名限制
            form.on('submit(IS_SIGUP)', function (data) {
                $.ajax({//进行审核提交
                    url: '/IS_SIGUP',
                    async: false,
                    type: "POST",
                    data: {
                        IS_SIGUP: data.field.IS_SIGUP
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            //提交作品数量
            form.on('submit(SUBMIT_WORK_NUMBER)', function (data) {
                $.ajax({//进行审核提交
                    url: '/SUBMIT_WORK_NUMBER',
                    async: false,
                    type: "POST",
                    data: {
                        SUBMIT_WORK_NUMBER: data.field.SUBMIT_WORK_NUMBER
                    },
                    success: function (data) {
                        // console.log(data)
                        if (data) {
                            layer.msg("提交成功！")
                        }
                    }
                })
                return false;
            });
            form.on("checkbox(detail_time_open)", function (obj) {
                //获取表单元素 对应的渲染元素
                if (obj.elem.checked) {
                    if ($("#global_start_time").val() == "" || $("#global_end_time").val() == "") {

                        layer.msg("请先设置开始和结束时间")
                        obj.elem.checked = false;
                        obj.othis.removeClass("layui-form-checked");
                        return;
                    }
                    $(".add_time").css("display", "inline-block");
                } else {
                    $(".add_time").css("display", "none");
                    $("#match_time_add").empty();
                }
            })

            $("#prizeOne").click(function (event) {

                $("#match_time_add").append($("#match_date_item").html());

                $("#match_time_add").children().last().find(".date").each(function (index, item) {
                    laydate.render({
                        elem: item,
                        type: 'datetime'
                    });
                    $(".matchtime_del").on("click", function () {
                        if ($(this).parent(".match")) {
                            $(this).parent(".match").remove();
                        }
                        return false;
                    });

                })
                return false;
            });
            $("#edit_match_time_item").click(function (event) {
                var s = $("#match_time_add").children(".match").length;
                console.log(s)
                if (s < 4) {

                    //设置第一项
                    $("#match_time_add").append($("#match_date_item").html());
                    s++;
                    //使时间指示器生效
                    $("#match_time_add").children().last().find(".date").each(function (index, item) {
                        laydate.render({
                            elem: item,
                            type: 'datetime',
                            //点击日期、清空、现在、确定均会触发。回调返回三个参数，分别代表：生成的值、日期时间对象、结束的日期时间对象
                            done: function (value, date, endDate) {
                            }

                        });
                    })
                    //添加时期同步更新
                    console.log(s)

                } else {
                    layer.msg("最多支持添加4个时间段！")
                }
                $(".matchtime_del").on("click", function () {
                    if ($(this).parent(".match")) {
                        $(this).parent(".match").remove();
                    }
                    return false;
                });
                return false;
            });
            $("#prize_name_add").on("click", ".prizename_del", function (event) {

                if ($(this).parent(".prize_item")) {
                    $(this).parent(".prize_item").remove();
                }
                return false;

            });
            $("#prize_name_add").on("click", ".upload_jacket_img1", function (event) {

                var that = this;
                // $(this).next(".upload_jacket_img1>span").hide();
                var ipt = document.createElement("input")
                ipt.type = "file";
                ipt.multiple = false;
                ipt.accept = "image/*"
                ipt.onchange = function (ev) {
                    console.log(ipt.files);

                    if (ipt.files.length > 0) {
                        var formdata = new FormData();
                        formdata.append("file", ipt.files[0]);
                        formdata.append("dir", "prize");
                        $.ajax({
                            url: "/operate/uploadImg",
                            data: formdata,
                            type: "post",
                            async: false,
                            processData: false,
                            contentType: false,
                            success: function (result) {
                                console.log("result:", result);

                                var path = result;
                                $(that).css("content", "url(" + path + ")");
                                $(that).siblings("input.upload_img").val(path);

                            },
                            error: function (ret) {

                                layer.msg("网络错误！")
                            }
                        })


                    }


                    ipt = null;
                }
                ipt.click();






















            });

            $("#edit_prize_item").click(function (event) {

                $("#prize_name_add").append($("#prize_name_item").html());

                return false;
            });
            $(".showimg1").on("click", function () {
                var that = this;

                var img_url = $(this).data("img_url");
                layer.open({
                    title: '',
                    type: 4,
                    content: ['    <div class="img_alert" >\n' +
                        '        <img  src="' + img_url + '" >\n' +
                        '    </div>', that],
                    shade: 0,
                    shadeClose: true,
                    anim: 0,
                    tips: [1, '#0000'],
                    time: 2000


                })
            });
            $(".showimg2").on("click", function () {
                var that = this;
                layer.open({
                    title: '',
                    type: 4,
                    content: [$("#prize_img2").html(), that],
                    shade: 0,
                    shadeClose: true,
                    anim: 0,
                    tips: [1, '#0000'],
                    time: 2000


                })
            });
            $(".showimg3").on("click", function () {
                var that = this;
                layer.open({
                    title: '',
                    type: 4,
                    content: [$("#prize_img3").html(), that],
                    shade: 0,
                    shadeClose: true,
                    anim: 0,
                    tips: [1, '#0000'],
                    time: 2000


                })
            });
            $("#details_edit").click(function () {
                $(".details").css("display", "block")
            });
            $("#prize_rules_edit").click(function () {
                $(".rules").css("display", "block")
            });
            $("#rescind").click(function () {
                $(".details").css("display", "none")
            });
            $("#close").click(function () {
                $(".rules").css("display", "none")
            });
            $("#date_edit").on("click", function () {
                $(".date_set_item").css("display", "block");
            });
            $("#prize_edit").on("click", function () {
                $(".prize_set_item").css("display", "block");
            });
            $("#date_cancel").on("click", function () {
                $(".date_set_item").css("display", "none");
            });
            $("#btn_cancel").on("click", function () {
                $("#prize_name_add").empty();
                $(".prize_set_item").css("display", "none");
            });

            $(".delete_prize_btn").click(function () {
                var prizeId = $(this).siblings("input.prizeId").val()
                layer.confirm('你确定要删除吗？', function (index) {
                    $.ajax({//进行审核提交
                        url: '/deletePrize',
                        async: false,
                        type: "POST",
                        data: {
                            PrizeId: prizeId
                        },
                        success: function (data) {
                            layer.msg("删除成功！");
                            setTimeout(function () {
                                window.location.href = '/getActivityDetails';
                            }, 500)
                        }
                    })
                }, function (index) {
                    layer.close(index);
                });

            })

        })
    </script>

</body>

</html>